package com.entity;

import java.util.HashMap;
import java.util.Map;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement 
@XmlAccessorType(XmlAccessType.FIELD) 
public class Student extends Person {
	@XmlElementWrapper(name="results") 
	@XmlElement(name="result") 
	private Map<Course, Double> results=new HashMap<Course,Double>();//学生的成绩

	public Map<Course, Double> getResults() {
		return results;
	}

	public void setResults(Map<Course, Double> results) {
		this.results = results;
	}

	@Override
	public String toString() {
		return super.toString();
	}
	
	
	
}
